public class DialogUI_SelectionButton : MyButton
{
    private DialogNode node;
    private DialogSystem dialogSystem;

    protected override void Awake()
    {
        base.Awake();
        dialogSystem = GetComponentInParent<DialogSystem>();
    }

    public void ShowSelection(string text, DialogNode _node)
    {
        m_text.text = text;
        node = _node;
    }

    protected override void OnClick()
    {
        dialogSystem.SelectDialogNode(node);
    }

}
